<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .wrapper{
      width: 500px;
    }
    .block{
      background: #efd;
    }
    .inline{
      background: #dfe;
    }
    .inlineblock{
      display: inline-block;
      background: #edf;
    }
  </style>
</head>
<body>
  <div class="wrapper">
    <div class="block">块元素</div>
    <span class="inline">内联元素</span>
    <div class="inlineblock">内联块元素</div>
  </div>
</body>
</html>